package com.bawei.module_inspection.fl.ui

import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.launch

class InspectionStandardViewModel : ViewModel() {

    private val _standardList = MutableStateFlow<List<String>>(emptyList())
    val standardList = _standardList.asStateFlow()

    init {
        viewModelScope.launch {
            val data = listOf(
                "1 绿地是否需要修剪",
                "2 现场是否有垃圾",
                "3 是否有安全隐患",
                "4 设施是否有损坏"
            )
            _standardList.value = data
        }
    }
}